package com.checking.attendance.service;

import com.checking.attendance.dao.ClockRulesMapper;
import com.checking.attendance.dao.LeaveMapper;
import com.checking.attendance.pojo.ClockRules;
import com.checking.attendance.pojo.Leave;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClockRulesService {
    @Autowired
    private ClockRulesMapper clockRulesMapper;

    public int insertSelective(ClockRules record){
        return clockRulesMapper.insertSelective(record);
    }

    public int updateByPrimaryKeySelective(ClockRules record){
        return clockRulesMapper.updateByPrimaryKeySelective(record);
    }

    public int deleteByPrimaryKey(String id){
        return clockRulesMapper.deleteByPrimaryKey(id);
    }

    public ClockRules selectByPrimaryKey(String id){
        return clockRulesMapper.selectByPrimaryKey(id);
    }

    public ClockRules queryClockRulesInformation(String courseTitle){
        return clockRulesMapper.queryClockRulesInformation(courseTitle);
    }


    public List<ClockRules> queryUserClockRulesInformation(ClockRules record){
        return clockRulesMapper.queryUserClockRulesInformation(record);
    }

    public List<ClockRules> queryClockRulesInformationAll(){
        return clockRulesMapper.queryClockRulesInformationAll();
    }

    public ClockRules seekClockRules(ClockRules record){
        return clockRulesMapper.seekClockRules(record);
    }


}
